#include "mux.h"
using namespace std;

int main(int argc, char **argv) {
     vector<AVPacket*> list_video;
     auto demuxer = make_unique<fv::Demux>();
    demuxer->demux_init("1.flv");
    int count = 0;
    for(int i = 0; i < 50; i++) {
        int ret = demuxer->demux_packet(&(count), list_video);
        if(ret != 0) {
            continue;
        }
    }
    for(int i = 0; i < list_video.size(); i++) {
        cout << list_video[i]->dts << endl;
    }
    return 0;
}